<?php
namespace app\api\controller;

use app\common\lib\Time;

class Test extends ApiBase {
    public function index(){
//        echo phpinfo();exit;
        $token = 'ABCDE';
        $redisData = [
            'id'=>23,
            'username'=>'ke'
        ];
        $res = cache(config('redis.token_pre').$token, $redisData, Time::userLoginExpiresTime(1));
        dump($res);exit;
    }
}